// dlg.txt

//	mark_quest_dest(zone,x,y,layer,quest);
//	cancel_out_fight(0,short kill_enc)
//	make_outdoor_enc(short x,short y,short which_enc);
//	set_out_fight_field(short which_field);

begintalkscript;

variables;

short this_sec = 72;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "As you walk west, the ground starts to squish under your feet. You ignore it until you smell the smoke.";
	text2 = "The squishing wasn't water. It was many tiny blobs of slime. They are eating at the soles of your footwear. The corruption of the Kranas Woods is very strong here.";
	code =
		sf(100 + this_sec,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "You see something suspended inside one of the slimes. It's gross, but you dig it out. It's a lovely gemstone.";
	code =
		change_coins(100,TRUE);
	break;

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "There is a small clan out here, not too far from the center of civilization. They are herb pickers. Their home is surrounded by bundles of plants, drying by low fires. Every member of the clan, even the small children, combs the woods for valuable plants and fungi.";
	text2 = "They are friendly folk, and they don't seem to have any problems with Havenites. However, they know nothing of value in your quest.";
	text3 = "You exchange roughly the same small talk with them you did the last time you were here. Pleasant, but unproductive.";
	code = 
		if (gf(172,9) == 0) {
			sf(172,9,1);
			rs(3);
			}
			else rs(2);
	break;
	

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "This is an ancient stone circle. Several Ro are in the middle of it. One druid and several ordinary folk. They are in a circle, facing outwards, staffs out. They are concerned about something. Not you, happily.";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "Approach them.";
	text1 = "When you get close to their little circle, you can see what is in the middle of it. It's a tiny, quivering plant, moist and only just sprouted out of the earth. It's a twisted, twitchy little thing, but it gets larger with every moment.";
	text2 = "The druid says, _You are Haven. We ask your help. This forest wants to return. The corruption wants to spread to it. Defend us._";
	code =
		sf(172,15,1);
	break;
	
begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Leave.";
	text1 = "The Ro watch quietly as you leave. They didn't expect you to do otherwise.";
	action = END_TALK;
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_The forest returns?_";
	text1 = "_It is very slow and delicate. It takes time. The damage outsiders have done can be healed, if it is allowed._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Defend you from what?_";
	text1 = "_Corruption. It comes._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_The time of the forest is past. I will not help._";
	text1 = "The Ro look away from you. They keep their faces utterly emotionless. You walk off. They watch quietly as you go. The last you see them, they are still gathered around their thorny little horror.";
	action = END_TALK;
	code =
		ro_faction(-3);
		cancel_out_fight(0,1);
	break;

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_I will help you._ Join them.";
	text1 = "You join their little circle. As you wait, you try to make a little conversation. They are quiet and serious.";
	text2 = "Then, just as you are getting bored, you hear an inhuman screech. Beasts lurch out of the undergrowth. Roots reach out of the ground at you feet. The forest wants to destroy this little intruder.";
	action = END_TALK;
	code =
		ro_faction(2);
		cancel_out_fight(0,1);
		make_outdoor_enc(104,365,0);
	break;

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_I can't fight for you. I must go._ Leave.";
	text1 = "The Ro don't respond. They just watch quietly as you go. The last you see them, they are still gathered around their thorny little horror.";
	action = END_TALK;
	code =
		ro_faction(-1);
		cancel_out_fight(0,1);
	break;
	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = "The battle ended, you look around for the weird little plant thing you defended. It is gone. It's as if it sank into the ground. It has vanished. The druid is completely unconcerned.";
	text2 = "The druid helps heal his defenders, and they prepare to journey back to town.";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "_Where is the plant?_";
	text1 = "_The shell is dead. The seed is planted._";
	text2 = "_We will probably not live to see the result._";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "_I want to know something about the woods._";
	text1 = "_Our Raasa speaks for us. We must go home._";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "_Goodbye._";
	text1 = "Before you go, the druid picks something out of the dirt, cleans it off, and hands it to you. _This is old and precious. It is a worthy reward._ It is a piece of amber.";
	text2 = "They all give you a little bow. Then they depart.";
	action = END_TALK;
	code =
		change_crafting(0,0,1,0,0);
	break;

//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				